#将每个.c文件分别生成对应的可执行文件的Makefile   
SRCS := $(wildcard *.c)
OUTS := $(patsubst %.c,%,$(SRCS))
CC := gcc
COM_OP := -Wall -g -pthread

all: $(OUTS)                      
% : %.c
	$(CC) $^ -o $@ $(COM_OP)

.PHONY: clean rebuild all
clean:
	$(RM) $(OUTS)

rebuild: clean all
